package com.hzh.page.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzh.page.pojo.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzh.page.vo.PageInfoReqVO;
import com.hzh.page.vo.PageInfoRespVO;
import com.hzh.page.vo.PageNumVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HZH
 * @since 2022-11-11
 */
public interface PageInfoService extends IService<PageInfo> {

    Page<PageInfoRespVO> queryPageList(Page<PageInfo> pageParam, PageInfoReqVO pageInfoReqVO);

    void addOrUpdatePage(PageInfo pageInfo);

    List<PageInfoRespVO> top10Page();

    Page<PageInfoRespVO> getNoAuditPageList(Page<PageInfo> pageParam, HttpServletRequest request);

    List<PageInfoRespVO> top10PageByView();

    List<PageNumVo> GetPublishedPagesNumOrderByCategory(Integer userId);

}
